package com.ciaojian.core.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ciaojian.core.model.Protocol;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author oxiny
 */
public interface ProtocolMapper extends BaseMapper<Protocol> {

    /**
     * 显示未同意的协议
     *
     * @param storeId 门店ID
     * @param userId  用户ID
     * @return 协议
     */
    List<Protocol> showForUser(@Param("storeId") Integer storeId, @Param("userId") Integer userId);

}
